// 封装banner轮播图业务相关代码
import {getHomeBanner} from '@/apis/home.js'
import {ref} from 'vue'

export function useBanner() {
        const bannerList = ref([])
        const getBannerList = async () => {
                const res = await getHomeBanner({
                        distributionSite: '2'
                })
                bannerList.value = res.data.result
        }
        getBannerList()

        return {
                bannerList
        }
}
